package com.site.wisdom_construction.service.safetyModule;

import com.site.wisdom_construction.dao.safetyModule.SafetyDangerStatisticsDao;
import com.site.wisdom_construction.entity.safetyModule.SafetyDangerStatistics;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/2/12
 * @Description
 */
@Service
public class SafetyDangerStatisticsService implements SafetyDangerStatisticsDao {
    @Autowired
    private SafetyDangerStatisticsDao safetyDangerStatisticsDao;

    @Override
    public int insertSafetyDangerStatistics(Map map) {
        return safetyDangerStatisticsDao.insertSafetyDangerStatistics(map);
    }

    @Override
    public int deleteSafetyDangerStatistics(Integer projectId) {
        return safetyDangerStatisticsDao.deleteSafetyDangerStatistics(projectId);
    }

    @Override
    public List<SafetyDangerStatistics> selectSafetyDangerStatistics(Map map) {
        return safetyDangerStatisticsDao.selectSafetyDangerStatistics(map);
    }
}
